
<table id="dt_official" class="table table-striped table-bordered table-hover datatable"> 
    <thead>
        <tr>
            <th>Protocolo</th>
            <th>Endereço da ocorrência</th>
            <th>Bairro</th>
            <th>Situação</th>
            <th>Ações</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($ocurrences as $ocurrence): ?>
            <tr>
                <td><?php echo $ocurrence['SisdecOccurrence']['protocolo']; ?></td>
                <td><?php echo $ocurrence['SisdecOccurrence']['endereco_occurrence']; ?></td>
                <td><?php echo $ocurrence['SisdecNeighborhood']['nome_neighborhood']; ?></td>
                <td><?php echo $ocurrence['SisdecSituation']['status']; ?></td>
                <td>
                    <?php echo $this->Html->link(__('<i class="fa fa-search fa-lg"></i>'), array('action' => 'view', $ocurrence['SisdecOccurrence']['id']),array('class'=>'btn btn-primary','escape' => false)); ?>
                    <?php echo $this->Html->link(__('<i class="fa fa-pencil-square-o fa-lg"></i>'), array('action' => 'edit', $ocurrence['SisdecOccurrence']['id']),array('class'=>'btn btn-success','escape' => false)); ?>
                    
                </td>

            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php echo $this->Html->script('views/SisdecOccurrences/data_table.js'); ?>


